﻿@model VehicleManagement.Models.CarParts
@{
    ViewBag.Title = "Edit";
}
<h2></h2>
<link rel="stylesheet" href="@Url.Content("~/Content/css/page_zlb_c_e_d.css")" type="text/css"/>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script type="text/javascript">
    $(function () {
        $.post("/Driver/GetDriverNameList", {},
            function (data) {
                $("#DriverName").empty();
                $.each(data, function () {
                    $("#DriverName").append('<option>' + this + '</option>');
                });
            });
        $.post("/CarInfo/GetCarNumberList", {},
            function (data) {
                $("#CarNumber").empty();
                $.each(data, function () {
                    $("#CarNumber").append('<option>' + this + '</option>');
                });
            });
    });
    </script>


@Html.Partial("_PartviewDrivermanageNav")
<div class="content bc">
    <div class="content_link_warn f12">
        你当前的位置：车辆管理&gt&gt &nbsp;&nbsp;车辆购件&gt&gt &nbsp;&nbsp;购件信息修改
    </div>
    <div class="content_right fr" id="rightcontent">
        @using (Html.BeginForm())
        {
            @Html.ValidationSummary(true)
    
            <fieldset>
                @*<legend></legend>*@
                <div class="OutTitle">
                    <span>配件信息修改</span></div>
                <div class="Box">
                    <div class="SubBox1 mt5 ml15 mr15">
                        <div class="SubTitle">
                            配件基本信息</div>
                        <div class="SubBox-container">
                            <div class="text-wrap">
                                <div class="text-line">
                                    
                                    <div class="withValidate">
                                        <span>@Html.LabelFor(model => model.CarNumber):</span>
                                        @Html.DropDownListFor(model => model.CarNumber, new SelectList(new[] {"车牌号"}, "车牌号"))
                                        <div class="validate">
                                            @Html.ValidationMessageFor(model => model.CarNumber)
                                        </div>
                                    </div>
                                    <div class="withValidate">
                                        <span>@Html.LabelFor(model => model.DriverName):</span>
                                        @Html.DropDownListFor(model => model.DriverName, new SelectList(new[] { "司机姓名" }, "司机姓名"))
                                        <div class="validate">
                                            @Html.ValidationMessageFor(model => model.DriverName)
                                        </div>
                                    </div>
                                    <div class="clear"></div>
                                </div>
                                <div class="text-line">
                                    <div class="withValidate">
                                        <span>@Html.LabelFor(model => model.TickID):</span>
                                        @Html.EditorFor(model => model.TickID)
                                        <div class="validate validate4">
                                            @Html.ValidationMessageFor(model => model.TickID)
                                        </div>
                                    </div>
                                    <div class="withValidate">
                                        <span>@Html.LabelFor(model => model.Part):</span>
                                        @Html.EditorFor(model => model.Part)
                                        <div class="validate validate4">
                                            @Html.ValidationMessageFor(model => model.Part)
                                        </div>
                                    </div>
                                    <div class="withValidate">
                                        <span>@Html.LabelFor(model => model.PartCompany):</span>
                                        @Html.EditorFor(model => model.PartCompany)
                                        <div class="validate validate4">
                                            @Html.ValidationMessageFor(model => model.PartCompany)
                                        </div>
                                    </div>
                                    <div class="clear"></div>
                                </div>
                                <div class="text-line">
                                    <div class="withValidate">
                                        <span>@Html.LabelFor(model => model.Cost):</span>
                                        @Html.EditorFor(model => model.Cost)
                                        <div class="validate validate4">
                                            @Html.ValidationMessageFor(model => model.Cost)
                                        </div>
                                    </div>
                                    <div class="withValidate">
                                        <span id="priceinPartCE">@Html.LabelFor(model => model.Price):</span>
                                        @Html.EditorFor(model => model.Price)
                                        <div class="validate validate3">
                                            @Html.ValidationMessageFor(model => model.Price)
                                        </div>
                                    </div>
                                    <div class="withValidate">
                                        <span>@Html.LabelFor(model => model.Num):</span>
                                        @Html.EditorFor(model => model.Num)
                                        <div class="validate validate2">
                                            @Html.ValidationMessageFor(model => model.Num)
                                        </div>
                                    </div>
                                    <div class="clear"></div>
                                    
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="SubBox2 m15 mt10 mb5">
                        <div class="SubTitle">
                            配件相关信息</div>
                        <div class="SubBox-container">
                            <div class="text-wrap ml5 mb5 mr5">
                                <div class="text-line">
                                    <div class="withValidate">
                                        <span>@Html.LabelFor(model => model.Date):</span>
                                        @Html.EditorFor(model => model.Date)
                                        <div class="validate validate4">
                                            @Html.ValidationMessageFor(model => model.Date)
                                        </div>
                                    </div>
                                    <div class="withValidate">
                                        <span>@Html.LabelFor(model => model.Approval):</span>
                                        @Html.EditorFor(model => model.Approval)
                                        <div class="validate validate4">
                                            @Html.ValidationMessageFor(model => model.Approval)
                                        </div>
                                    </div>
                                    <div class="clear"></div>
                                </div>
                                <div class="text-line">
                                    <span class="spanType1">@Html.LabelFor(model => model.Remark):</span>
                                    @Html.TextAreaFor(model => model.Remark)
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="button-wrap">
                    <div class="submit-wrap">
                        <div class="divINsubmit saveEdit">
                            <input class="submit" type="submit" value="保存修改" /></div>
                    </div>
                    <div class="a-back mr15">
                        <div class="divINa-back">@Html.ActionLink("返回", "Index")</div>
                    </div>
                </div>
            </fieldset>
        }
    </div>
   @Html.Partial("_PartviewCarLeftbar")
    <div class="content_contract fl">
        <a href="javascript:void(0)" class="btn_contract w8h32" id="contract" title="收缩">
        </a><a href="javascript:void(0)" class="btn_expand w8h32" id="expand" title="展开">
        </a>
    </div>
    <div class="cb">
    </div>
</div>
